<?php
$cs=Yii::app()->clientScript;
//$cs->coreScripts('jquery.ui');
//$cs->registerCssFile(Yii::app()->request->baseUrl.'/js/artDialog/iframeTools.source.js',CClientScript::POS_HEAD );
//$cs->registerScriptFile(Yii::app()->request->baseUrl.'/js/artDialog/artDialog.min.js',CClientScript::POS_HEAD );
//$cs->registerCssFile(Yii::app()->request->baseUrl.'/js/artDialog/skins/default.css',CClientScript::POS_HEAD );
?>
<link href="/js/dialog/asyncbox/skins/ZCMS/asyncbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/dialog/asyncbox/jQuery.v1.4.2.js"></script>
<script type="text/javascript" src="/js/dialog/asyncbox/AsyncBox.v1.4.js"></script>

<script type="text/javascript">
$(function() {
    $('#d2').click(function(){
        asyncbox.open({
            html:'<iframe width="865" height="350" src="/docs/2.doc.html"></iframe>',
            title:'四川计算机学会个人会员注册条例',
            width: '900',
            height: '400'
        });
    });
    $('#d3').click(function(){
        asyncbox.open({
            html:'<iframe width="865" height="350" src="/docs/3.doc.html"></iframe>',
            title:'四川计算机学会团体会员注册条例',
            width: '900',
            height: '400'
        });
    });
});
</script>

<div class="h8"></div>
<!-- 通栏-->
<div class="detailContent-title"><span class="local">当前位置：首页&nbsp;>&nbsp;会员注册</span></div>
<div class="tonglan memberrg">
    <div class="c1">
        <?php if($session['type_pg']==1):?>
        <p id="tt">在选择你合适的会员类别之前，请先阅读</p>
        <p><span>
<!--            <a href="/index.php?r=article/title&name=四川计算机学会个人会员注册条例" target="_blank">四川计算机学会个人会员注册条例</a>-->
            <a id="d2">四川计算机学会个人会员注册条例</a>
        </span></p>
        <?php elseif($session['type_pg']==2): ?>
        <p>在选择你合适的会员类别之前，请先阅读</p>
        <p><span>
<!--            <a href="/index.php?r=article/title&name=四川计算机学会团体会员注册条例" target="_blank">四川计算机学会团体会员注册条例</a>-->
            <a id="d3">四川计算机学会团体会员注册条例</a>
        </span></p>
        <?php endif;?>
    </div>
    <div class="form">
        <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'profiles-form',
            'enableAjaxValidation'=>false,
        )); ?>

        <p class="note" style="font-size: 14px;color: #ff0000;margin: 0 auto;width: 130px;display: block;"><?php echo $session['error'];?></p>

    <div class="c2 color870dad">
        <?php if($session['type_pg']==1):?>
        <p><label><input name="type_p_vasn" type="radio" value="1" <?php echo $session['type_p_vasn']==1 ? 'checked="checked"':''; ?>/>尊最会员</label></p>
        <p><label><input name="type_p_vasn" type="radio" value="2" <?php echo $session['type_p_vasn']==2 ? 'checked="checked"':''; ?>/>高级会员</label></p>
        <p><label><input name="type_p_vasn" type="radio" value="3" <?php echo $session['type_p_vasn']==3 ? 'checked="checked"':''; ?>/>普善会员</label></p>
        <p><label><input name="type_p_vasn" type="radio" value="4" <?php echo $session['type_p_vasn']==4 ? 'checked="checked"':''; ?>/>晋学会员</label></p>
        <?php elseif($session['type_pg']==2): ?>
        <p><label><input name="type_g_pebg" type="radio" value="1" <?php echo $session['type_g_pebg']==1 ? 'checked="checked"':''; ?>/>公共机构</label></p>
        <p><label><input name="type_g_pebg" type="radio" value="2" <?php echo $session['type_g_pebg']==2 ? 'checked="checked"':''; ?>/>学校教育</label></p>
        <p><label><input name="type_g_pebg" type="radio" value="3" <?php echo $session['type_g_pebg']==3 ? 'checked="checked"':''; ?>/>公司企业</label></p>
        <p><label><input name="type_g_pebg" type="radio" value="4" <?php echo $session['type_g_pebg']==4 ? 'checked="checked"':''; ?>/>其它机构</label></p>
        <?php endif;?>
        <div class="clear"></div>
    </div>
    <div class="c3">
        <h6>四川计算机学会个人会员注册条例</h6>
        <?php
        $title='注册协议';
        $criteria=new CDbCriteria;
        $criteria->condition='type=3 AND title=:title';
        $criteria->params=array(':title'=>$title);
        $ta=Article::model()->find($criteria);
        if(isset($ta->content)){
            echo $ta->content;
        }
        ?>
    </div>
    <div class="tongyi">
        <label><input name="ty" type="checkbox" value="yes" <?php if($session['ty']) echo 'checked="checked"';?>  class="checkbox" />我已阅读会员条例并同意接受注册协议内容</label>
    </div>
    <div id="but" class="cen paddingbotton80 paddingtop50">
        <span><?php echo CHtml::submitButton('',array('id'=>'topstep','style'=>'border: 0 none;font-size:0;','name'=>'setup','value'=>1)); ?></span>
        <span><?php echo CHtml::submitButton('',array('id'=>'nextstep','style'=>'border: 0 none;font-size:0;','name'=>'setup','value'=>3)); ?></span>
    </div>
    <div class="clear"></div>

        <?php $this->endWidget(); ?>
    </div><!-- form -->
</div>

<div class="h8"></div>

